<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<img src="img/company-2.png" id="img"/>
		<canvas id="canvas" width="500" height="500">
			
		</canvas>
	</body>
	<script type="text/javascript">
		var img = document.getElementById("img");
		
		img.onload = function(){
			var context = document.getElementById("canvas");
			if(canvas.getContext){
				context = canvas.getContext("2d");
				context.strokeRect(0,0,300,300);
				context.beginPath();
				context.moveTo(0,0);
				context.quadraticCurveTo(150,-20,150,150);
				context.quadraticCurveTo(160,300,300,300);
				context.lineWidth = "10"
				var pattern = context.createPattern(img,"repeat");
				context.strokeStyle = pattern;
				context.stroke();
			}
		}
		
	</script>
</html>
